// MainForm.cpp : implementation file
//

#include "stdafx.h"
#include "MainForm.h"


// CMyTemplateForm dialog

IMPLEMENT_DYNAMIC(CMyTemplateForm, CBaseForm)

CMyTemplateForm::CMyTemplateForm(CWnd* pParent /*=NULL*/)
	: CBaseForm(CMyTemplateForm::IDD, pParent)
{

}

CMyTemplateForm::~CMyTemplateForm()
{
}

void CMyTemplateForm::DoDataExchange(CDataExchange* pDX)
{
	CBaseForm::DoDataExchange(pDX);
}


BEGIN_MESSAGE_MAP(CMyTemplateForm, CBaseForm )
	ON_BN_CLICKED(IDC_BUTTON1, &CMyTemplateForm::OnBnClickedButton1)
END_MESSAGE_MAP()

CString CMyTemplateForm::GetTitle() const
{
	return _T("MyTemplate Form");
}


// CMyTemplateForm message handlers

void CMyTemplateForm::OnBnClickedButton1()
{
	// TODO: Add your control notification handler code here
	::MessageBoxA(NULL,"","",MB_OK);
}

BOOL CMyTemplateForm::OnInitDialog()
{
	BOOL ret = CBaseForm::OnInitDialog();
	return ret;
}

void CMyTemplateForm::CreateShow( CWnd* pParent )
{
	Create(IDD,pParent);

	ModifyStyle(0, WS_EX_CONTROLPARENT);
	ShowWindow(SW_SHOW);
}
